import { http } from "@/utils/http";

type Result = {
  success: boolean;
  data: Array<any>;
};

export const getAsyncRoutes = (data: {
  type: string;
  userType: string;
  post?: number;
  account?: string;
  businessId?: number;
}) => {
  return http.requestJson<Result>("post", "/get-async-routes", { data });
};
